package servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Logout extends ServletTemplate{
    /**
     * 执行POST操作 
     */
    public void doPost(HttpServletRequest request,
                         HttpServletResponse response) throws IOException, ServletException{
        super.doPost(request, response);
       
        //清除用户的登陆有效时间
        this.setSessionAttr("validTime", -1);
        this.setSessionAttr("isPoll", false);
        this.redirect("./index");
    }
}
